#include <iostream>

using namespace std;

int stricmp(const char *str1, const char *str2)
{
    while (true) {
        char ch1 = 'a' | *str1++;
        char ch2 = 'a' | *str2++;

        if (ch1 == '\0' && ch2 == '\0') {
            return 0;
        } else if (ch1 != ch2) {
            return ch1 - ch2;
        }
    }
}

int main (int argc, char *argv)
{
    char str1[] = "AbCd123";
    char str2[] = "aBcD123";
    
    if (stricmp(str1, str2)) {
        cout << "No the same !!";
    } else {
        cout << "The same";
    }
    return 0;
}
